package com.zzptc.sky.baidudemo.activities;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.LinearLayout;

import com.zzptc.sky.baidudemo.R;
import com.zzptc.sky.baidudemo.base.BaseActivity;


public class UserActivity extends BaseActivity{

    private Toolbar toolbar;
    private LinearLayout ll_updatr;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_user);

        toolbar = (Toolbar) findViewById(R.id.tool_bar);
        ll_updatr = (LinearLayout) findViewById(R.id.ll_update);

        setSupportActionBar(toolbar);
        ActionBar actionBar = getSupportActionBar();
        actionBar.setDisplayHomeAsUpEnabled(true);

        ll_updatr.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(UserActivity.this,AboutOrUpdateActivity.class));
            }
        });
    }

    @Override
    public int getContentLayout() {
        return R.layout.activity_user;
    }
}
